/* eslint-disable import/prefer-default-export */
import { request } from '@/request/v2';

// 报告列表
export const questionnaireList = (payload) => {
  return request({
    method: 'GET',
    url: `https://www.thuguardian.com/api/user/questionnaire_list`,
    payload,
    codeIgnore: true,
  });
};

// 报告详情
export const questionnaireInfo = (payload) => {
  return request({
    method: 'GET',
    url: `https://www.thuguardian.com/api/questionnaire/get_info`,
    payload,
    codeIgnore: true,
  });
};

// app问卷信息获取
export const questionnaireGetAppInfo = (payload) => {
  return request({
    method: 'GET',
    url: `https://www.thuguardian.com/api/questionnaire/get_app_info`,
    payload,
    codeIgnore: true,
  });
};


// 提交报告对应评估员评价
export const assessmentAdd = (payload) => {
  return request({
    method: 'POST',
    url: `https://www.thuguardian.com/api/assessment/add`,
    payload,
    codeIgnore: true,
  });
};

// 修改报告对应评估员评价
export const assessmentUpdate = (payload) => {
  return request({
    method: 'POST',
    url: `https://www.thuguardian.com/api/assessment/update`,
    payload,
    codeIgnore: true,
  });
};

// 获取报告对应评估员评价
export const assessmentGet = (payload) => {
  return request({
    method: 'GET',
    url: `https://www.thuguardian.com/api/assessment/get`,
    payload,
    codeIgnore: true,
  });
};
